/**
 * Error handler for the Torchd JavaScript Framework
 *
 * @param string method		The method's name in dot notation starting from after "torchd"
 * @param string error		The error to report
 * @package Torchd Framework
 * @subpackage System
 * @author Jason Raede <jason@torchdm.com>
 */
torchd.system.error = function(method, error) {
	var text = 'Torchd Error: (' + method + ') ' + error;
	switch(torchd.system.config.errorHandling) {
		case 'console':
			console.log(text);
			break;
		case 'alert':
			alert(text);
			break;
	}
};